class BaseResponse {
  final int code;
  final String msg;
  final String data;

  BaseResponse({
    required this.code,
    required this.msg,
    required this.data,
  });

  factory BaseResponse.fromJson(Map<String, dynamic> json) {
    return BaseResponse(
      code: json['code']??0,
      msg: json['msg']??"",
      data: json['data']??"",
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'code': code,
      'msg': msg,
      'data': data,
    };
  }
}